from pymouse import *
from pykeyboard import *
import time

m = PyMouse()
k = PyKeyboard()


def sout():
    print("aaa")

menu = {'up': 38, 'down': 40, 'left': 37, 'right': 39, 'esx': 27,
        'F1': 112, 'F2': 113, 'F3': 114, 'F4': 115, 'F5': 116, 'F6': 117, 'F7': 118, 'F8': 119, 'F9': 120, 'F10': 121,
        'F11': 122, 'F12': 123, 'enter': 13, 'backspace': 8, 'tab': 9, 'shift': 16, 'control': 17}


for i in range(0, 5):
    time.sleep(2)
    sout()
    k.tap_key(38, 1, 0.1)
    time.sleep(1)
    k.tap_key(40, 1, 0.1)
    time.sleep(1)
